package com.winsdom.mapper;

import com.winsdom.entity.SysCodeRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 编码规则表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2025-05-12
 */
public interface SysCodeRuleMapper extends BaseMapper<SysCodeRule> {

    /**
     * 根据分类id查组织标识
     * @param categoryId
     */
    @Select("select identifier from sys_code_rule where category_id = #{categoryId}")
    String selectByCategoryId(Long categoryId);
}
